package com.example.carrierapp.bean.dispatch;

import java.util.List;

public class DispatchListBean {
    int totalCount;//(integer, optional),
    List<DispatchListInfo> items;//(Array[Logistics.Application.CarrierApp.WaybillDtos.WaybillDto], optional)

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public List<DispatchListInfo> getItems() {
        return items;
    }

    public void setItems(List<DispatchListInfo> items) {
        this.items = items;
    }

    @Override
    public String toString() {
        return "DispatchListBean{" +
                "totalCount=" + totalCount +
                ", items=" + items +
                '}';
    }

    public class DispatchListInfo {
        public String billCode;//通知单号 , (string, optional):
        public int pickArea;// 提货地址 , (integer, optional):
        public String pickCityName;//提货城市名称 , (string, optional):
        public int takeArea;//收货地址 , (integer, optional):
        public String takeCityName;//   收货城市名称 ,(string, optional):
        public int carrierId;//承运商编号 , (integer, optional):
        public String shipperName;// 货主姓名 ,(string, optional):
        public double platformRate;//商品保值价 , (number, optional):
        public double winOffer;//商品保值价 , (number, optional):
        public int goodsPrice;//货物价格 , (integer, optional):
        public String goodsUnitName;//货物价格单位名称 , (string, optional):
        public String proName;//货物名称 ,(string, optional):
        public int unit;// 计价单位(1吨2整车3件4立方) =['1','2','4'],(integer, optional):
        public String unitName;// 计价单位名称 ,(string, optional, read only):
        public double thisProNum;//  本次运输量 ,(number, optional):
        public String expiryTime;//计划截止日期 , (string, optional):
        public String creationTime ;//发货单创建时间(string, optional):
        public boolean isModified;// 是否修改发货通知单的预计运量或者卸货地点 , (boolean, optional):
        public boolean isNotifiedCarrierBank;//  是否通知承运宝 ,(boolean, optional):
        public int id;//(integer, optional)}
        public boolean isCompleted;//是否确认收货
        public int billState ;/// 发货通知通状态 1=待运输 2=正在运输 3=所有运单送达 4=发货单交货{ set; get; }
        public int dispatchedTimes;/// 已调度车次数 { get; set; }
        public double dispatchedNum ;/// 已调度运量{ get; set; }
        public int deliveredTimes; /// 已送达车次数{ get; set; }
        public double deliveredNum;/// 已送达运量{ get; set; }
        public boolean isDispatched;//是否调度

        @Override
        public String toString() {
            return "DispatchListInfo{" +
                    "billCode='" + billCode + '\'' +
                    ", pickArea=" + pickArea +
                    ", pickCityName='" + pickCityName + '\'' +
                    ", takeArea=" + takeArea +
                    ", takeCityName='" + takeCityName + '\'' +
                    ", carrierId=" + carrierId +
                    ", shipperName='" + shipperName + '\'' +
                    ", platformRate=" + platformRate +
                    ", winOffer=" + winOffer +
                    ", goodsPrice=" + goodsPrice +
                    ", goodsUnitName='" + goodsUnitName + '\'' +
                    ", proName='" + proName + '\'' +
                    ", unit=" + unit +
                    ", unitName='" + unitName + '\'' +
                    ", thisProNum=" + thisProNum +
                    ", expiryTime='" + expiryTime + '\'' +
                    ", creationTime='" + creationTime + '\'' +
                    ", isModified=" + isModified +
                    ", isNotifiedCarrierBank=" + isNotifiedCarrierBank +
                    ", id=" + id +
                    ", isCompleted=" + isCompleted +
                    ", billState=" + billState +
                    ", dispatchedTimes=" + dispatchedTimes +
                    ", dispatchedNum=" + dispatchedNum +
                    ", deliveredTimes=" + deliveredTimes +
                    ", deliveredNum=" + deliveredNum +
                    ", isDispatched=" + isDispatched +
                    '}';
        }
    }
}
